using System;
using System.Collections.Generic;
using System.Text;
using System.Net;
using System.IO;

namespace Cartoon
{   
    public class Episode
    {
        public Episode(string name, string url)
        {
            if (name == null)
                throw new ArgumentNullException("name");
            if (url == null)
                throw new ArgumentNullException("url");

            this.m_Name = name;
            this.m_Url = url;
        }

        public string Name
        {
            get { return m_Name; }
        }

        public bool Checked
        {
            get { return m_Checked; }
            set { m_Checked = value; }
        }

        public bool Favorited
        {
            get { return m_Favorited; }
            set { m_Favorited = value; }
        }

        public string Url
        {
            get { return m_Url; }
        }

        public override string ToString()
        {
            return m_Name;
        }

        string m_Url;
        string m_Name;
        bool m_Checked;
        bool m_Favorited;
    }
}
